﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<WebClient.Models.ViewModels.GroupViewModel>" %>
<span style="font-size:18px; font-weight:bold;">Content of question</span>
<p>
    <div class="AdminPageText" style="width: 690px;">
        <div id="tieude">
            <div style="width: 60px; float:left;" >
                <span style="text-decoration: underline;">TieuDe:</span>
            </div>    
            <div style="width: 620px; padding-left: 60px;" >
                <%= Model.ContactModel.GetModel.LstObjModel[0].Subject %>
            </div>    
        </div>
        <div style="clear: both; height: 10px;"></div>
        <div id="noidung">
            <div style="width: 60px; float:left;" >
                <span style="text-decoration: underline;">NoiDung: </span>
            </div>    
            <div style="width: 620px; padding-left: 60px;" >
                <%= Model.ContactModel.GetModel.LstObjModel[0].Detail %>
            </div>    
        </div>  
    </div>
    <br />
</p>
<div class="AdminPageText">
List Of Reply
</div>
<table class="Grid" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
			<th>Content</th>
			<th>UserReply</th>
			<th></th>
		<tr>
	</thead>
	<% for (int i=0; i<Model.ReplyModel.GetModel.LstObjModel.Count; i++){
		if (i % 2 != 0) {%>
		<tr class="Row" id="row-<%= Model.ReplyModel.GetModel.LstObjModel[i].ID %>">
		<% }
		else { %>
		<tr class="AlternatingRow" id="row-<%= Model.ReplyModel.GetModel.LstObjModel[i].ID %>">
		<% } %>
			<td><span style=""><%= Model.ReplyModel.GetModel.LstObjModel[i].Content %></span></td>
			<td><span style=""><%= Model.ReplyModel.GetModel.LstObjModel[i].UserReply %></span></td>
			<td>
				<a href="../../Admin/DeleteReply?id=<%= Model.ReplyModel.GetModel.LstObjModel[i].ID %>&page=<%= Model.ReplyModel.GetModel.CurrentPage %>" onclick="return confirm('Are you sure you want to Delete it? This action cannot be undone.');">Delete</a>
			</td>
		</tr>
	<% } %>  
</table>
